import request from "@/request/api"


export function pageWell(pageINfo:object,formWell?:object){
        return request({
                url:'/pageWell',
                method:'get',
                params:{
                        pageINfo,
                        formWell
                }
        })
}

export function addWell(addWellName:string,wellType:number,addWellDepth:number,addwellDiameter:number,addwellDate:string) {
        return request({
                url:'/addWell',
                method:'post',
                params:{
                        addWellName,wellType,addWellDepth,addwellDiameter,addwellDate
                }
        })
}

export function updateWell(wellId:number,updateWellName:string,wellType:number,updateWellDepth:number,updateDiameter:number){
        return request({
                url:'',
                method:'post',
                params:{
                        wellId,updateWellName,wellType,updateWellDepth,updateDiameter
                }
        })
}

export function deleteWellById(ids:number[]){
        return request({
                url:'/deletewell',
                method:'delete',
                params:{
                ids
              }
        })
}